import request from '@/utils/request'

// 查询招聘岗位列表
export function listJobs(query) {
  return request({
    url: '/business/jobs/list',
    method: 'get',
    params: query
  })
}

// 查询招聘岗位详细
export function getJobs(jobId) {
  return request({
    url: '/business/jobs/' + jobId,
    method: 'get'
  })
}

// 新增招聘岗位
export function addJobs(data) {
  return request({
    url: '/business/jobs',
    method: 'post',
    data: data
  })
}

// 修改招聘岗位
export function updateJobs(data) {
  return request({
    url: '/business/jobs',
    method: 'put',
    data: data
  })
}

// 删除招聘岗位
export function delJobs(jobId) {
  return request({
    url: '/business/jobs/' + jobId,
    method: 'delete'
  })
}

// 导出招聘岗位
export function exportJobs(query) {
  return request({
    url: '/business/jobs/export',
    method: 'get',
    params: query
  })
}